package com.fingard.dsp.bank.reqrespobj.frgcurrsingle;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.frgcurrsingle.detail.RetAtsCJFrgCurrSingleDetail;
import com.fingard.xml.XmlTextWriter;

/**
 * 财经--海外接口提交或查询返回ATS通用对象
 */
public class RetAtsCJFrgCurrSingle extends RetAtsBase {

    public RetAtsCJFrgCurrSingleDetail singleDetail=null;

    public RetAtsCJFrgCurrSingle(ReqRespHeader p_header){
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }

    public void writeRetDetail(RetAtsCJFrgCurrSingleDetail p_detail){
        writeStart();//写返回ATS的统一头部信息
        singleDetail = p_detail;

        p_detail.writeToXml(retXmlWriter);

        retXmlWriter.writeEndElement();
        writeEnd();//写结束
    }
}
